import React from "react";
import ImageText from "../components/imagetext";

export default class Guonei extends React.Component{
	constructor(){
		super();
		this.state = {
			GuoNeiNews:[]
		}
	}

	componentDidMount(){
		var result = fetch("http://www.wwtliu.com/sxtstu/news/juhenews.php?type="+this.props.type+"&count="+this.props.count,{
			method:"get"
		})
		.then(res => {
			return res.json();
		})
		.then(json => {
			this.setState({
				JunshiNews:json
			})
		})
	}

	render(){
		var newsCount=20;
		return(
			<div>
				<ImageText type="guonei" count={newsCount}></ImageText>
			</div>
		)
	}
}